<%@ page import="com.apexedu.portal.constant.Constants" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title><%=Constants.ProjectInfo.PROJECT_NAME%>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style>
        fieldset {
            border: 1px solid #ccc;
            margin: 20px auto;
        }

        legend {
            text-align: left;
        }

        table {
            width: 100%;
            line-height: 45px;
        }

        tr.custom {
            display: none;
        }

        select {
            width: 300px;
            height: 25px;
            padding: 0;
            border: 1px solid #ccc;
        }

        input {
            width: 300px;
            height: 25px;
            padding: 0;
            border: 1px solid #ccc;
        }

        .buttonDiv {
            height: 80px;
            line-height: 80px;
        }

        button {
            width: 100px;
            height: 25px;
            font-size: 12px;
        }
    </style>
</head>
<body>
<div id="main">
    <jsp:include page="../shgh/headNologin.jsp"/>
    <script src="${basePath}/resources/js/common/json2.js"></script>
    <script type="text/javascript">
        $(function () {

        });

        /**
         * 提交
         */
        function doSumbit() {
            var userid = $("#userid").val();
            if (userid == null || userid == '') {
                alert("用户名不能为空！");
                return false;
            }
            $.post("${basePath}/s/mh/mu", {userid: userid}, function (data) {
                if (data == 'false') {
                    alert('用户名不存在！');
                    return false;
                } else {
                    window.location.href = "${basePath}/s/mh/fp/qe";
                }
            });
        }
    </script>
    <div id="content">
        <div id="contentSub" style="min-height: 445px;height: auto;padding-bottom: 160px;">
            <fieldset>
                <legend>1、输入用户名：</legend>
                <table>
                    <tr>
                        <td width="35%" align="right">用户名：</td>
                        <td width="65%" align="left"><input type="text" name="userid" id="userid"
                                                            value="<%=session.getAttribute("userid")==null?"":session.getAttribute("userid")%>"/>
                        </td>
                    </tr>
                </table>
                <div class="buttonDiv">
                    <button type="button" onclick="doSumbit()">下一步</button>
                    <button type="button">取消</button>
                </div>
            </fieldset>
        </div>
        <div id="contentBg"></div>
    </div>
    <jsp:include page="<%=Constants.ProjectInfo.FOOT_VIEW%>"/>
</div>
</body>
</html>
